package com.itheima.tlias.controller;

import com.itheima.tlias.common.result.Result;
import com.itheima.tlias.pojo.entity.Teacher;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestBeanController {
    @Resource
    Teacher createTeacherOne;

    @GetMapping("/createBean")
    public Result createBean(){
        return Result.success(createTeacherOne);
    }
}
